<template>
	<view class="box">
		<image :src="imagePath" class="item-image"></image>
		<view class="title">{{ name }}</view>
		<image :src="$myRequire('/other/more.png')" class="more"></image>
	</view>
</template>

<script>
	export default {
		name: 'home-item',
		props: ['name', 'image'],
		computed: {
			imagePath() {
				return this.$myRequire(this.image)
			}
		}
	}
</script>

<style scoped>
	.box{
		display: flex;
		align-items: center;
		background-color: #FFFFFF;
		height: 90rpx;
		margin: 5rpx 0;
		padding: 0 30rpx;
		border-radius: 7px;
	}

	
	.title{
		font-size: 17px;
		font-weight: 500;
	}
	
	.item-image{
		width: 40rpx;
		height: 40rpx;
		margin-right: 25rpx;
	}
	
	.more{
		width: 30rpx;
		height: 30rpx;
		position: absolute;
		right: 30rpx;
	}
</style>
